using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CMS.Domain.Entity
{
    /// <summary>
    /// 评论表
    /// </summary>
    public class Comment : Base.BaseEntity
    {
        /// <summary>
        /// 发评论的用户的id
        /// </summary>
        /// <value></value>
        public Guid UserId { get; set; }

        /// <summary>
        /// 所评论的文章的编号
        /// </summary>
        /// <value></value>
        public Guid BlogId { get; set; }

        // 评论内容 CommentText string 
        public string CommentText { get; set; } = null!;

        /// <summary>
        /// 是否评论
        /// </summary>
        /// <value></value>
        public bool IsComment { get; set; }

        /// <summary>
        /// 发布评论的id
        /// </summary>
        /// <value></value>
        public Guid CommentId { get; set; }

    }
}